# coding: utf-8
import tarfile
from pathlib import Path

data = "/root/workspace/data"


def prepare(file: str):
    with tarfile.open(file, "r:gz") as tar:
        tar.extractall(data)


if __name__ == "__main__":
    # prepare(file="/root/autodl-pub/cifar-10/cifar-10-python.tar.gz")
    prepare(file="/root/autodl-pub/cifar-100/cifar-100-python.tar.gz")
